<include file="Common:header" />
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <h1>
        账号管理
        <small><a href="{$listUrl}">{$actionTitle}</a></small>
      </h1>
      <ol class="breadcrumb">
        <li><a href="/"><i class="fa fa-dashboard"></i> Home</a></li>
        <li class="active">账号管理</li>
        <li class="active"><a href="{$listUrl}">{$actionTitle}</a></li>
      </ol>
    </section>

    <!-- Main content -->
    <section class="content">
      <div class="box">
        <form class="form-horizontal" method="post">
          <div class="box-body">
            <div class="form-group">
              <label class="col-sm-2 control-label"><ins class="btn btn-danger btn-sm">邮箱</ins> </label>

              <div class="col-sm-10">
                <input type="text" class="form-control" placeholder="邮箱,作为登录用户名" name="email">
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 control-label"><ins class="btn btn-danger btn-sm">密码:</ins></label>
              <div class="col-sm-10">
                <input type="text" class="form-control" placeholder="密码 6-16位, 数字、字母、_组成" name="password">
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 control-label"><ins class="btn btn-danger btn-sm">确认密码:</ins></label>
              <div class="col-sm-10">
                <input type="text" class="form-control" placeholder="密码 6-16位, 数字、字母、_组成" name="againPassword">
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 control-label">姓名:</label>
              <div class="col-sm-10">
                <input type="text" class="form-control" placeholder="姓名" name="name">
              </div>
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label"><ins class="btn btn-danger btn-sm">角色:</ins></label>

            <div class="col-sm-10">
              <select name="roleId" class="form-control">
                <option value="0" selected> ————请选择角色———— </option>
                <?php
                  foreach($roleList as $val){
                ?>
                <option value="<?php echo $val['id'];?>" <?php if($data['role_id'] == $val['id']){echo 'selected';}?>> <?php echo $val['title'];?> </option>
                <?php }?>
              </select>
            </div>
          </div>
          <!-- /.box-body -->
          <div class="box-footer">
            <div class="form-group">
              <label class="control-label col-sm-2 ">
                <a href="{$listUrl}" class="btn btn-default"><span class="fa fa-reply"></span>返回</a>
              </label>
              <label class="control-label">
                <button type="submit" class="btn btn-primary">创建</button>
              </label>
            </div>
          </div>
          <!-- /.box-footer -->
        </form>
      </div>
    </section>
    <!-- /.content -->
  </div>
  <div class="control-sidebar-bg"></div>
</div>
<!-- ./wrapper -->
<include file="Common:footer" />
<!-- SlimScroll -->
</body>
</html>
